package com.lindroy.androidplayer.viewmodels

import androidx.lifecycle.ViewModel
import com.lindroy.androidplayer.utils.SingleLiveEvent

/**
 * @author Lin
 * @date 2022/2/21
 * @function
 */
data class CollectedWebsiteItemViewModel(
    val id: Int? = 0,
    val desc: String? = "",
    val link: String? = "",
    val name: String? = "",
    val itemClickListener: SingleLiveEvent<CollectedWebsiteItemViewModel>
) : ViewModel() {

    fun onItemClick() {
        itemClickListener.postValue(this)
    }
}